﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Linq;
using System.ServiceProcess;
using System.Text;
using SsoaFramework;
using SsoaFramework.Core;

namespace WindowsService
{
    public partial class WindowsService : ServiceBase
    {
        EnterpriseServiceBus serviceBus;
        public WindowsService()
        {
            InitializeComponent();
        }

        protected override void OnStart(string[] args)
        {
            serviceBus = new EnterpriseServiceBus( new Uri("http://localhost:325/"));
         //   serviceBus.StartRouting();
        }

        protected override void OnStop()
        {
           // serviceBus.Dispose();
        }
    }
}
